import path from "path";
import { forkSync } from "./utils";
import { Singleton } from "../common/common/base";

export class SceneManager extends Singleton {
  static get Instance() {
    return super.GetInstance<SceneManager>();
  }

  async init() {
    await new Promise((rs) => setTimeout(rs, 500));
    forkSync(path.resolve(__dirname, "./scene/Scene1.ts"));
    forkSync(path.resolve(__dirname, "./scene/Scene2.ts"));
  }
}